package day03;

public class IfDemo {
    public static void main(String[] args) {
        /*
        if (boolean){
            语句块;
        }
        2)执行过程
         */
        double price = 300.0;
        if (price>=500){
            price *=0.8;
        }
        System.out.println("最终的消费金额是"+price);
    }
}
